package drrr.controller;

import drrr.orm.RoomChatListEntity;

import java.util.List;

/**
 * 代表每一个房间的信息
 * 可能会有所缺失，可以添加在类里面，例如房主等
 * Created by Xun on 2015/4/28.
 */
public class Room extends BaseAction {
    /**
     * 聊天记录
     */
    private List<RoomChatListEntity> roomChatListEntities;
    private int roomid;

    public int getRoomid() {
        return roomid;
    }

    public void setRoomid(int roomid) {
        this.roomid = roomid;
    }

    public List<RoomChatListEntity> getRoomChatListEntities() {
        return roomChatListEntities;
    }

    public void setRoomChatListEntities(List<RoomChatListEntity> roomChatListEntities) {
        this.roomChatListEntities = roomChatListEntities;
    }

    @Override
    public String execute() throws Exception {
        if (roomid == 0) {
            return ERROR;
        }/*
        this.setChatHistory(this.getAllService().getChatHistoryService().getChatHistory(roomid));
        if (getChatHistory() == null) {

        }*/
        return SUCCESS;
    }
}
